package com.itheima02.day06;

import java.time.LocalDateTime;

/**
 * @author 刘全
 * @date 2021/7/22
 */
public class LocalDateTimeDemo {
    public static void main(String[] args) {
        LocalDateTime ldt =  LocalDateTime.now();
        int year = ldt.getYear();
        int month = ldt.getMonthValue();
        int date = ldt.getDayOfMonth();
        int hour = ldt.getHour();
        int minute = ldt.getMinute();
        int second = ldt.getSecond();
        //int
    }
}
